package cn.ixinjiu.libraryMangement.service.impl;

import cn.ixinjiu.libraryMangement.dao.IAnnoDao;
import cn.ixinjiu.libraryMangement.dao.impl.AnnoDaoImpl;
import cn.ixinjiu.libraryMangement.entity.Anno;
import cn.ixinjiu.libraryMangement.service.IAnnoService;

import java.util.List;

/**
 * Created by XinChen on 2023-06-11
 *
 * @TODO
 */
public class AnnoServiceImpl implements IAnnoService {
    private IAnnoDao annoDao = new AnnoDaoImpl();
    @Override
    public List<Anno> annos() {
        return annoDao.annos();
    }

    @Override
    public int count() {
        return annoDao.count();
    }

    @Override
    public Anno getAnnoById(int id) {
        return annoDao.getAnnoById(id);
    }

    @Override
    public int annoAdd(Anno anno) {
        return annoDao.annoAdd(anno);
    }

    @Override
    public int annoUpd(Anno anno) {
        return annoDao.annoUpd(anno);
    }

    @Override
    public int annoDel(int id) {
        return annoDao.annoDel(id);
    }
}
